package com.tensquare.encrypt.rsa;

/**
 * rsa加解密用的公钥和私钥
 *
 * @author Administrator
 */
public class RsaKeys
{

    //生成秘钥对的方法可以参考这篇帖子
    //https://www.cnblogs.com/yucy/p/8962823.html

//	//服务器公钥
//	private static final String serverPubKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6Dw9nwjBmDD/Ca1QnRGy"
//											 + "GjtLbF4CX2EGGS7iqwPToV2UUtTDDemq69P8E+WJ4n5W7Iln3pgK+32y19B4oT5q"
//											 + "iUwXbbEaAXPPZFmT5svPH6XxiQgsiaeZtwQjY61qDga6UH2mYGp0GbrP3i9TjPNt"
//											 + "IeSwUSaH2YZfwNgFWqj+y/0jjl8DUsN2tIFVSNpNTZNQ/VX4Dln0Z5DBPK1mSskd"
//											 + "N6uPUj9Ga/IKnwUIv+wL1VWjLNlUjcEHsUE+YE2FN03VnWDJ/VHs7UdHha4d/nUH"
//											 + "rZrJsKkauqnwJsYbijQU+a0HubwXB7BYMlKovikwNpdMS3+lBzjS5KIu6mRv1GoE"
//											 + "vQIDAQAB";
//
//	//服务器私钥(经过pkcs8格式处理)
//	private static final String serverPrvKeyPkcs8 = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDoPD2fCMGYMP8J"
//				 								 + "rVCdEbIaO0tsXgJfYQYZLuKrA9OhXZRS1MMN6arr0/wT5YniflbsiWfemAr7fbLX"
//				 								 + "0HihPmqJTBdtsRoBc89kWZPmy88fpfGJCCyJp5m3BCNjrWoOBrpQfaZganQZus/e"
//				 								 + "L1OM820h5LBRJofZhl/A2AVaqP7L/SOOXwNSw3a0gVVI2k1Nk1D9VfgOWfRnkME8"
//				 								 + "rWZKyR03q49SP0Zr8gqfBQi/7AvVVaMs2VSNwQexQT5gTYU3TdWdYMn9UeztR0eF"
//				 								 + "rh3+dQetmsmwqRq6qfAmxhuKNBT5rQe5vBcHsFgyUqi+KTA2l0xLf6UHONLkoi7q"
//				 								 + "ZG/UagS9AgMBAAECggEBANP72QvIBF8Vqld8+q7FLlu/cDN1BJlniReHsqQEFDOh"
//				 								 + "pfiN+ZZDix9FGz5WMiyqwlGbg1KuWqgBrzRMOTCGNt0oteIM3P4iZlblZZoww9nR"
//				 								 + "sc4xxeXJNQjYIC2mZ75x6bP7Xdl4ko3B9miLrqpksWNUypTopOysOc9f4FNHG326"
//				 								 + "0EMazVaXRCAIapTlcUpcwuRB1HT4N6iKL5Mzk3bzafLxfxbGCgTYiRQNeRyhXOnD"
//				 								 + "eJox64b5QkFjKn2G66B5RFZIQ+V+rOGsQElAMbW95jl0VoxUs6p5aNEe6jTgRzAT"
//				 								 + "kqM2v8As0GWi6yogQlsnR0WBn1ztggXTghQs2iDZ0YkCgYEA/LzC5Q8T15K2bM/N"
//				 								 + "K3ghIDBclB++Lw/xK1eONTXN+pBBqVQETtF3wxy6PiLV6PpJT/JIP27Q9VbtM9UF"
//				 								 + "3lepW6Z03VLqEVZo0fdVVyp8oHqv3I8Vo4JFPBDVxFiezygca/drtGMoce0wLWqu"
//				 								 + "bXlUmQlj+PTbXJMz4VTXuPl1cesCgYEA6zu5k1DsfPolcr3y7K9XpzkwBrT/L7LE"
//				 								 + "EiUGYIvgAkiIta2NDO/BIPdsq6OfkMdycAwkWFiGrJ7/VgU+hffIZwjZesr4HQuC"
//				 								 + "0APsqtUrk2yx+f33ZbrS39gcm/STDkVepeo1dsk2DMp7iCaxttYtMuqz3BNEwfRS"
//				 								 + "kIyKujP5kfcCgYEA1N2vUPm3/pNFLrR+26PcUp4o+2EY785/k7+0uMBOckFZ7GIl"
//				 								 + "FrV6J01k17zDaeyUHs+zZinRuTGzqzo6LSCsNdMnDtos5tleg6nLqRTRzuBGin/A"
//				 								 + "++xWn9aWFT+G0ne4KH9FqbLyd7IMJ9R4gR/1zseH+kFRGNGqmpi48MS61G0CgYBc"
//				 								 + "PBniwotH4cmHOSWkWohTAGBtcNDSghTRTIU4m//kxU4ddoRk+ylN5NZOYqTxXtLn"
//				 								 + "Tkt9/JAp5VoW/41peCOzCsxDkoxAzz+mkrNctKMWdjs+268Cy4Nd09475GU45khb"
//				 								 + "Y/88qV6xGz/evdVW7JniahbGByQhrMwm84R9yF1mNwKBgCIJZOFp9xV2997IY83S"
//				 								 + "habB/YSFbfZyojV+VFBRl4uc6OCpXdtSYzmsaRcMjN6Ikn7Mb9zgRHR8mPmtbVfj"
//				 								 + "B8W6V1H2KOPfn/LAM7Z0qw0MW4jimBhfhn4HY30AQ6GeImb2OqOuh3RBbeuuD+7m"
//				 								 + "LpFZC9zGggf9RK3PfqKeq30q";

    //服务器公钥
    private static final String serverPubKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsZdWs+Owglm4tDi2dMfA\n" +
            "hGWoWyjcISdjJaZzhqU6Zk0FYHwxNEgvMfrl1VSvPjhf484snEG2dka7rBf/FiJR\n" +
            "AeiFfe1sS5417Lkt9C2BmWLXGLXQHOMyleQZzFgeyiekFFWUsV2vwsUvAPXjROdG\n" +
            "GNhNVATB68IDslOlgIWO2y519yrLCIy6JA4G8XHza+T/xyvsFJ2hrMLuZ/Qq4h21\n" +
            "LRxBNbzRrnns/VnX2QF1qIUiSV8nfFKmv1WuWU9HOK35AS5/xxwPqBIxIqaA1+g5\n" +
            "/+o4EAl6rLZVsUqNzy3vx/jgcubF323AVJfnyxccH1CpLVcb+cWhmT+0XgolDJc2\n" +
            "BQIDAQAB";

    //服务器私钥(经过pkcs8格式处理)
    private static final String serverPrvKeyPkcs8 = "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCxl1az47CCWbi0\n" +
            "OLZ0x8CEZahbKNwhJ2MlpnOGpTpmTQVgfDE0SC8x+uXVVK8+OF/jziycQbZ2Rrus\n" +
            "F/8WIlEB6IV97WxLnjXsuS30LYGZYtcYtdAc4zKV5BnMWB7KJ6QUVZSxXa/CxS8A\n" +
            "9eNE50YY2E1UBMHrwgOyU6WAhY7bLnX3KssIjLokDgbxcfNr5P/HK+wUnaGswu5n\n" +
            "9CriHbUtHEE1vNGueez9WdfZAXWohSJJXyd8Uqa/Va5ZT0c4rfkBLn/HHA+oEjEi\n" +
            "poDX6Dn/6jgQCXqstlWxSo3PLe/H+OBy5sXfbcBUl+fLFxwfUKktVxv5xaGZP7Re\n" +
            "CiUMlzYFAgMBAAECggEAHgsbON2JC9Q/4gVCIKl2US+ddqaH7vfp1wG8w4eKRKo9\n" +
            "AaCg9lZL3amzXg6wgtcoqbJEa77WLlYzA58foU/24lrC0pXq3zQJrV16f7d/GELX\n" +
            "Xq/LYEezVBY9ows5Uju4j1QXDpZp2IphNElkxFBX1HYrRs5zO/4bf/yUoBR4IW4H\n" +
            "iWTdRi69VEOx+D4EMMpwHUV9HQ3quNykXUgQFSfnvXF0RLE9GzBvF/Mray10mjyl\n" +
            "t26r4RZ9KpMRO1HEKo9qHKELTDZ5j3Ktm1j7AFJ4XIPBWspCuuDobBZLDP2x5f0Z\n" +
            "ZSLLaXxGNLC3CnZqmHf5RBJW8/N1NpIAXRk0pOR01QKBgQDcqUYf5wYeNdCQ/Hpz\n" +
            "awe6WzVrEJW8ns4wZotB5QAG3e2yrmsn+5XnHG8rf8QmO1F6xk5p5y67bhoDd0iB\n" +
            "luS6/ROUHNOpEiukN0YA05j656Z2Fl/rOc1cQ87duvomGHI91STB3OfF0nye+Vwa\n" +
            "Oo1u0DyvAVz+JyNf1PuOJy75MwKBgQDOCERuSZY6sraWB88DWCdM3QtYbxNr/4oV\n" +
            "cxKRW1Ln7yVH/CSqOFDi42GaE4iK+6l2DRbOWf+AD/OzO4v9njGYEQJI/UwH9s3j\n" +
            "k3WYq4pReZBN71OtHc7r91xZ8j4cliB5yZoCzX4cqMjKKnpyNN9D99bROIsnhT9W\n" +
            "GmtNWhRD5wKBgQCUsTRh1wmWXekXaisRj3P7re6HIPvlyJVkpBT+6FNmTTIZj9MB\n" +
            "dFUFEXIQO95vbNVxCCRa1L/26TB6WWzwdj/XiSYiTnKKoYXq+JwhfnS9zk+rj1Q/\n" +
            "bAnoPIEvhQl/lkWVSQWl5TgBY986OQpJWl9n5sadnyuMz87Uiu6gUeMjZQKBgQDF\n" +
            "WWfq2DO9P+fi59Hj2zGxz12JtMO+xARJLXNQplBQd2KXhC6+mbjoy3J2+lTlA9A7\n" +
            "kqgQumYhDaaaPOSH51qL1WcB8RY93qsyXNHcjhuslSujayYUgaPtpH/ibEYQbcDn\n" +
            "xzLtklZFL2s9MtkcwgZF/YTX3Th1f42+dQnpCuq0awKBgQCOiQ/mdh2VHXZdEu8G\n" +
            "xtro3E82FJLEvnpf2OvX9+IxsdXoou1pl717mhBypuS8mLYb61AQuKHux0rIoTxS\n" +
            "N2GjBalkcGmJo3LRA88kWpZZTmJkF6bXMgSZwvqthhuwSQU9KHXzW/Z/Z1hEGwPW\n" +
            "ajm5XUXd9OkIWcw+iL3PEJ/C6w==";

    public static String getServerPubKey()
    {
        return serverPubKey;
    }

    public static String getServerPrvKeyPkcs8()
    {
        return serverPrvKeyPkcs8;
    }

}
